//
//  HXCycleCellModel.m
//  ZCooking
//
//  Created by 韩旭 on 16/8/30.
//  Copyright © 2016年 HX_. All rights reserved.
//

#import "HXCycleCellModel.h"

@implementation HXCycleCellModel
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"id"]) {
        _ID = value;
    }
    
}
+ (NSArray *)hxCycleCellModelWithArr:(NSArray *)arr {
    NSMutableArray *arrDataSource = [NSMutableArray array];
    for (NSDictionary *dicWidget in arr) {
        HXCycleCellModel *model = [HXCycleCellModel ModelWithDic:dicWidget];
        if ([model.type isEqualToString:@"text"]) {
                model.content = [NSString stringWithFormat:@"%@", model.content];
                [arrDataSource addObject:model.content];
        }
    }
    return arrDataSource;
}

@end
